#ifndef __FILE_COLLECTION_INCLUDED
#define __FILE_COLLECTION_INCLUDED

#include <stdio.h>
#ifndef UNDER_CE
#include <sys/types.h>
#include <errno.h>
#endif
#include <string.h>
#include <stdlib.h>

#define	FC_LIST_GROW_SIZE	128

/*--------------------------------------------------------------------------*/
typedef struct
{
	unsigned long	files_amount;
	unsigned long	storage_size;
	char**			files;
} file_collection;


#ifdef __cplusplus
extern "C" {
#endif

file_collection* filecollection_init();
void filecollection_forget(file_collection* fc);
void filecollection_collect(file_collection* fc, char* path, char* ext);

#ifdef __cplusplus
};
#endif

#endif